-
Notifications
You must be signed in to change notification settings - Fork 385
Implement file read/write/seek in Windows #4275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@rustbot ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great overall, thanks! Just some minor comments. Nice to see that the blocking read/write API works for the Windows functions as well.
@rustbot author
Reminder, once the PR becomes ready for a review, use |
@CraftSpider what's the status of this? A standard library test started using |
There's a FIXME added in rust-lang/miri-test-libstd#96 that we can hopefully remove when this lands. |
I'll try to get this updated soon, I've just been doing other stuff - hopefully later today or tomorrow. |
This comment has been minimized.
This comment has been minimized.
81db8b2
to
e5b2f1e
Compare
(modulo tests passing) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually it seems there's one pretty big issue, see the comments regarding when the callback is called...
@rustbot author
I assume this is |
This looks great, thanks! After fixing the last nits, please squash the commits using @rustbot author |
|
Ah, bummer... you can do a manual squash instead, this was just meant to make things easier. |
c6bd4c9
to
eabd82d
Compare
I assume you meant to |
Nice, reading from stdin should also finally work with this. :) |
I can split seek off if desired, though that means I can't enable the whole file read/write shim test in
fs.rs
in one go